Modified by me to not use a module.